/* 
 * Copyright (C) 2012 Martin Řehánek <Martin.Rehanek at mzk.cz>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */


goog.provide('kramerius.audio.ui.playlist.GlobalButton');

//goog.require('kramerius.audio.ui.PlayerComponent');

/** @const */ 
//var PLAYLIST_GLOBAL_BUTTON_CLASS = 'playlist-btn-big';

/**
 * Button for manipulating active item in playlist.
 * @constructor 
 * @param {Element} container Element containing this component.
 * @param {kramerius.audio.ui.playlist.Playlist} playlist Playlist containing this button.
 */
kramerius.audio.ui.playlist.GlobalButton = function(container, playlist){
    /** @protected */
    this.container_ = container;
    this.playlist_ = playlist;
    this.containerClass_ = undefined;
};
    
/** @protected */
kramerius.audio.ui.playlist.GlobalButton.prototype.setContainerClass_ = function(btnClass){
    //console.log("setting button container class " + btnClass);
    //this.container_.setAttribute("class", btnClass + ' ' + PLAYLIST_GLOBAL_BUTTON_CLASS);
    this.container_.setAttribute("class", btnClass);
    this.containerClass_ = btnClass;
};


/** @protected */
kramerius.audio.ui.playlist.GlobalButton.prototype.getContainerClass_ = function(){
    return this.containerClass_;
}